import request from '@/utils/request'

export default {
  switchOrgnize(data) {
    return request({
      url: '/orgnizations/switch',
      method: 'post',
      data
    })
  },
  orgnizeTree(params) {
    return request({
      url: '/orgnizations/tree',
      method: 'get',
      params
    })
  },
  orgnizeStore(data){
    return request({
      url:'/orgnizations/store',
      method:'post',
      data
    })
  },
  orgnizeDelete(oid){
    return request({
      url:'/orgnizations/delete',
      method:'post',
      data:{id:oid}
    })
  }


}
